package com.zrrd.model.article.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * @author WanJl
 * @version 1.0
 * @title ApArticleContent
 * @description 文章内容
 */

@Data
@TableName("ap_article_content")
public class ApArticleContent implements Serializable {

    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 文章id
     */
    @TableField("article_id")
    private Long articleId;

    /**
     * 文章内容
     */
    private String content;

    @Override
    public String toString() {
        return "ApArticleContent{" +
                "id=" + id +
                ", articleId=" + articleId +
                ", content='" + content + '\'' +
                '}';
    }
}